//javaScript
function ad(button){
	var kid=document.getElementById(button.kid).value;
	window.location="http://localhost:8080/getMarks/updateMark/"+kid;
}

function as(){
	var cboxs= document.getElementsByName("cbox1");
	for(i in cboxs){
		if(cboxs[i].checked){
			var cb=cboxs[i].value;
			window.location="http://localhost:8080/getMarks/deleteMark/"+cb;
		}else{
			alert('请选择要删除的用户');
		}
	}
	
}

function va(form){
	var kscore= document.getElementById("kscore1").value;
	var gname= document.getElementById("gname1").value;
	 var kname= document.getElementById("kname1").value;
	 var date= new Date();
	 var gdate= date.getFullYear()+"/"+date.getMonth()+"/"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
	 document.getElementById("gdate1").value=gdate;
  if(kscore!="" && gname!="" && kname!="" ){
    alert('添加成绩成功！');
    return true;
  }
  alert('抱歉,添加成绩失败！');
  return false;
 }